import config from "@/config"
import http from "@/utils/request"
export default {
    messages:{
        createZhaoshangInfo:{
			url: `${config.XAPI_URL}/create_zhaoshang_info`,
			name: "小园对话",
			post: async function (data) {
				return await http.post(this.url, data, {headers: {}});
			}
		},
        match:{
			url: `${config.XAPI_URL}/match`,
			name: "小园对话",
			post: async function (data) {
				return await http.post(this.url, data, {headers: {}});
			}
		},
		insertXyaiHistory:{
			url: `${config.API_URL}/get/iciXyaiHistory/insertXyaiHistory`,
			name: "添加历史记录",
			post: async function (data) {
				return await http.post(this.url, data, {headers: {}});
			}
		},
		getXyaiHistoryList:{
			url: `${config.API_URL}/get/iciXyaiHistory/getXyaiHistoryList`,
			name: "小园对话历史记录",
			get: async function (params) {
				return await http.get(this.url,params);
			}
		},
		matchData:{
			url: `${config.XAPI_URL}/match_data`,
			name: "小园对话",
			post: async function (data) {
				return await http.post(this.url, data, {headers: {}});
			}
		}
    } 
}